// index.js
Page({
  data:{
    list:{

    }
  },
  getgoods(e){
    let index = this.data.list[e.detail.value].classifyId
    wx.navigateTo({
      url: `../banner/banner?classifyId=${index}`,
    })
    console.log(index);
  },
 onLoad(){
  wx.request({
    url: 'https://route.showapi.com/1700-1?showapi_appid=1367085&showapi_sign=cb8507c33e4a43cfa34a954c91b91fd6',
    success:(res)=>{
      console.log(res);
      this.setData({
        list:res.data.showapi_res_body.storylist
      })
    }
  })
  
 }

})
